#include "tree.h"
#include <stdio.h>

int main() {
    LPTree root = tree_create();
    tree_add(root, 1, 1);
    tree_add(root, 2, 1);
    switch (tree_check(root, 2, 2)) {
        case 0: printf("Value not found in the tree.\n"); break;
        case 1: printf("Value was found in the three (current owner)\n"); break;
        case 2: printf("Value was found in the three (over owner)\n"); break;
    }
    tree_del(root, 1, 1);
    tree_del(root, 2, 1);
    return 0;
}